# File: Divulgacao.py
"""\
Classe abstrata com os dados comuns aos casos de uso e oportunidades de
trabalho.

"""
# Copyright (c) 2005 by TcheZope.org
# Generator: ArchGenXML Version 1.4 devel 4 http://sf.net/projects/archetypes/
#
# GNU General Public Licence (GPL)
# 
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
__author__  = '''Fabiano Weimar dos Santos <xiru@xiru.org>, Jean Rodrigo Ferri
<jeanrodrigoferri@yahoogroups.com>, Rafahela Bazzanella
<rafabazzanella@yahoo.com.br>'''
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *




from Products.PloneZopista.config import *
##code-section module-header #fill in your manual code here
##/code-section module-header

schema= Schema((
    StringField('id',
        widget=IdWidget
        (
            visible={'view':'hidden','edit':'hidden'},
            label='Id',
            label_msgid='PloneZopista_label_id',
            description='Enter a value for id.',
            description_msgid='PloneZopista_help_id',
            i18n_domain='PloneZopista',
        ),
    ),
    
    TextField('description',
        widget=TextAreaWidget(
            label="Descricao",
            description="Informe uma breve descricao sobre a divulgacao.",
            label_msgid='PloneZopista_label_description',
            description_msgid='PloneZopista_help_description',
            i18n_domain='PloneZopista',
        ),
        required=1,
        accessor="Description",
        searchable=1,
    ),
    
    TextField('texto',
        allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword',),
        widget=RichWidget(
            description="Descreva o corpo do texto sobre sua divulgacao Python/Zope/Plone e afins.",
            label='Texto',
            label_msgid='PloneZopista_label_texto',
            description_msgid='PloneZopista_help_texto',
            i18n_domain='PloneZopista',
        ),
        required=1,
        default_content_type="text/html",
        searchable=1,
        default_output_type='text/html',
        primary=1,
    ),
    
),
)


##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Divulgacao(BaseContent):
    """
    Classe abstrata com os dados comuns aos casos de uso e
    oportunidades de trabalho.
    """
    security = ClassSecurityInfo()
    __implements__ = (getattr(BaseContent,'__implements__',()),)


    allowed_content_types      = [] 
    schema = schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header


    #Methods
# end of class Divulgacao

##code-section module-footer #fill in your manual code here
##/code-section module-footer



